home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 29
/
Volume 29 - JOGO DISK .iso
/
Games
/
jungle_adventure.swf
/
scripts
/
__Packages
/
RopeObject.as
< prev
next >
Wrap
Text File
|
2006-11-29
|
2KB
|
58 lines
class RopeObject extends CommandBox
{
var exitTime = 0;
var assetID = null;
var localRight = 20;
var command = "climb";
var editor_isItem = true;
var editor_name = "Rope";
var editor_args_names = ["height"];
var editor_args_values = [CommandBox.prototype.localBottom];
var editor_args_types = ["number"];
var editor_args_options = [[100,4000,10]];
var editor_args_descriptions = [""];
var editor_args_mode = [0];
var editor_args_component = ["NumericStepper"];
var editor_canChangeFrame = false;
var editor_canChangeAsset = false;
var editor_canChangeLayer = true;
function RopeObject(h)
{
super();
if(h)
{
this.localBottom = h;
}
this.init(SSZone.RECT,new Vector(this.localRight,this.localBottom,0));
}
function onAddDisplay()
{
this.target.beginFill(13333275);
this.target.moveTo(8,0);
this.target.lineTo(8,this.localBottom);
this.target.lineTo(12,this.localBottom);
this.target.lineTo(12,0);
this.target.endFill();
}
function editor_onDisplay(target, external)
{
target.createTextField("t",20,0,0,100,48);
var _loc3_ = target.t;
var _loc4_ = _loc3_.getNewTextFormat();
_loc4_.size = 20;
_loc4_.color = 16777215;
_loc4_.font = "_sans";
_loc3_.setNewTextFormat(_loc4_);
_loc3_.selectable = false;
_loc3_.text = "Command:\n" + this.command;
target.clear();
target.lineStyle(0,16742348);
target.beginFill(16742348,80);
target.lineTo(this.width,0);
target.lineTo(this.width,this.height);
target.lineTo(0,this.height);
target.lineTo(0,0);
target.endFill();
}
}